Fixed so Qt5 code can use c++11