https://bugs.winehq.org/show_bug.cgi?id=44052
--- Comment #39 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 62146 --> https://bugs.winehq.org/attachment.cgi?id=62146 patch
Attaching what I got so far, it still needs some work to fix derived targets. If anyone has time to test with actual application, please do.