It turns out libGL from Intel crashes when calling glxewInit (where mesa, nvidia work fine), unfortunately the only option without making larger changes to glew, is to inline the parts of glew we're using - before the glx context is created.