You should add CONFIG += strict_c++ which is disables support for C++ compiler extensions. By default, they are enabled.
CONFIG += strict_c++