Review/clang warning fixes

A set of fixes for compiler warnings reported by clang on OSX 10.9.