[osx/ios/atv2] Xcode5 fix

this, as the subject states, is the fix for ios7 and xcode5. it also adds some fixes for 10.9 SDK but we cannot build on 10.9 SDK yet, we need some SDL(2) love

below are jenkins results, all works fine ... @davilla @memphiz please check it out

http://jenkins.xbmc.org/view/Dashboard/job/XBMC-Android-ARM/723/
http://jenkins.xbmc.org/view/Dashboard/job/XBMC-LINUX-64/186/
http://jenkins.xbmc.org/view/Dashboard/job/XBMC-WIN-32/783/
http://jenkins.xbmc.org/view/Dashboard/job/XBMC-OSX-32/366/
http://jenkins.xbmc.org/view/Dashboard/job/XBMC-IOS-ATV2/663/