added -lGL to linker flags