Fix some compiler warnings reported by Clang 3.4.0