Fixed for platforms with c++11 not as default.