Timob 12558 - Allow ARC modules to compile against Titanium

While I'm making the pull request, the changes were originally done by @mstepanov and @steipete. CR and FR has passed already. Will be merging.