Qt5: Compile fixes for cross-compiling with Qt5