Added def flag to build with Qt5