Fixes for qmake