Some fixes for the iPhone build.

Signed-off-by: FellowTraveler <F3llowTraveler@gmail.com>