Fix an improper include on Xcode.
Fix some warnings discovered via Clang/Xcode.