Try to prevent OS X crash.

https://github.com/glfw/glfw/issues/163