added Qt compile flags to fix errors