Add QPlatformInterface header for OS X
Fix building Qt without OpenGL support on OS X