adjust flags to compile with Xcode 4.6
fix build error with Xcode 4.6
copy strings to prevent crash in destructor
collect profile data across all JS contexts
Merge pull request #8 from mstepanov/timob-12192

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