OSX: make it buildable and runnable with XQuartz