Isolated OSMesa problem as the inclusion of OpenGL libraries.