Fixed glBatchViewer build for GLFW 2.x