Changes needed for OSX/IOS built

OSX builds and confirmed working at runtime.

IOS builds.  ATV2 is still building, but no reason why it would fail.  I can't runtime test either of those.

Looks like win32 still doesn't build, but that's up to someone else :)