Apparently it's a bug in dlltool (or ld) which can't handle forwards with NONAME modifier like this one:
DrawTextWrap@20=user32.DrawTextW @415 NONAME
A workaround is to create a thunk in the code like it was done before the following patch:
Why not just change winebuild to do something like this: #ifdef BROKEN_MINGW_LD print_normal(...); #else print_noname(...); #endif
Rob