Minor formatting.
Disable landscape interface orientations.
Address warnings.
Restore OS X-only inline function.
Disable unused static function to prevent warning.