Fixed C++11 compilation error on Mac OS X
Eliminated all clang compilation warnings