Ok, I confirmed these tests are pre-existing. Earlier I sent it to the testbot and it all succeeded, see:
https://testbot.winehq.org/JobDetails.pl?Key=45094
I submitted a dummy test and it also succeeded:
https://testbot.winehq.org/JobDetails.pl?Key=45130
So it looks like some random failure to me and not based on the patch.
I know the patch most likely will need some tweaking with the extern function declaration thing. Can someone please provide some feedback for it?