Fix ptexViewer build with GLFW 2.x