Promoting to c++11 and fixing printf bug.