Fix MacOS build: missing define, wrap Win32-specific glfw function.