darwin love

fix compilation for osx/ios/atv2 and sync xcode projects.

Given a short runtime test on all 3 platforms and it looks good so far.

Great work as usual montellese :o)