[TIMOB-12192] Xcode 4.6 build error fixes and changes required for profiler

[TIMOB-12192](https://jira.appcelerator.org/browse/TIMOB-12192)