also for jpeg (i don't know how to include it into patch):
cd qt && rm -f include/jpegint.h include/jpeglib.h

this files must be supplied with libraries... also there ara a lot of other files in include directory, that shouldn't be included into qt directory.