Added iOS support.

Added an iOS test target and fixed some warnings.