Added make check and added QMAKE_CXX=$CXX.