Solved problems when compiling with C++11 active