Only add compiler flags on gcc.
Mark Qt5 as a required dependency.