Fix some issues with the Xcode project for OSX