Added forward compatibility for GLFW.

This is required for context creation to succeed on OS X.