Tweaks to get things compiling on iOS.