added Qt compile flags to fix error