Use qt5 compile flags correctly