Fix warnings

After duplicated #147, #148 and #149, this pull request fixes the remaining Xcode warnings except for OCTest deprecated warning.
If moved to an xconfig file Xcode will show again the warning prompting to update the build settings to recommended settings (and add these lines again).