C++11 support & setup code
Compile code is not dry, TODO
Merge pull request #71 from xcthulhu/c++

C++11