Fix autodetect of GLEW libraries in CMake