;; this doesn't work across all platforms - need to do more investigation
(bind-func glfw_set_compatibility_profile
  (lambda ()
    (glfwWindowHint GLFW_CONTEXT_VERSION_MAJOR 3)
    (glfwWindowHint GLFW_CONTEXT_VERSION_MINOR 1)
    (glfwWindowHint GLFW_OPENGL_FORWARD_COMPAT (convert 0)) ;; GL_FALSE
    (glfwWindowHint GLFW_OPENGL_PROFILE GLFW_OPENGL_COMPAT_PROFILE)))