fix some warnings + fix xcode project