Fix of a GLEW-related bug
Minor updates in the build system