In any case, the patch will fail as written - on the Msys 1 system I just tested Win32::API is not available to the DTK perl we need to use to run TAP tests.
May I ask which version of Msys is that system using? In a recent installation (post 1.0.11) I see that those modules are available.