load OpenGL using GLEW

just import GL/glew.h to get access to all the OpenGL functions.

also made it possible to call the build script from anywhere