Fixed Clang compilation errors when targeting ARM.
Minor other cleanups and stylistic changes.