QtOpenGL , undefined reference to 'QEglContext ...

When doing a native compile on BBxM of qt examples and other code that
use QtOpenGL,ie makefile include -IQtOpenGL, I get the following
error at linking stage;

/usr/lib/libQTOpenGL.so: undefined reference to
'QEglContext::configAttrib(int, int*) const'

This board successfully runs pre compiled SGX and qt4 demos included
with the image that I built using Angstrom online builder.The image
includes libgles-omap3 and qt4-x11-free-gles-dev, I have also
installed libGLU

I am new to Qt, GL and BB so I may have missed some basic
understanding so here are some questions;