(qt5) Use proper macro to compile with required flags