https://bugs.winehq.org/show_bug.cgi?id=32679
--- Comment #3 from super_man@post.com --- (In reply to Mikhail Bystryantsev from comment #2)
Created attachment 52201 [details] Possible fix
Some time ago a tried to contribute this patch, but it has not been reviewed. I hope it will be helpful at least here.
"Qian Hong 2016-03-20 12:46:30 CET
BTW, after applying the patch, Qt5 seems builds fine. Qt4 doesn't need this patch to build."
So your patch is tested against at least 1 application.