Added UIImage manipulation functions for iOS.
Rearranged CPP project files to support platform-specific inclusions.

(cherry picked from commit 0f8e54edef8b64cf87bee4141ff6cf3dcfedaacb)