Fixed compilation issues when UIKit is not specified in precompiled headers.

Fixed two compilation warnings with implicit conversions.
For clarity's sake added back explicit empty handling of orientation during in transformForOrientation.