Switch to C++11 standard.
Fixed issues with compiling on 10.9 with clang