Compile warning fixes and minor code policy fixes.