Compiling but not tested.. we have to still modify a lot :(..
compiling with c++11 g++4.7