linking libglew as binary solved a lot of issues, now only problem is -lGLEW flag