- fixed up compilation (using c++11, pedantic flag, on linux)