remove compile errors on OS X [Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)]