fixed issues with pure c++11 mode of gcc.