This should enable c++11, but you need to add vec.h to the project so I cant test
Merge pull request #1 from mtao/master

make compiler use C++11