Update code base to be c++11 compatible.