Fix Qt build by not exporting flags.