Warren,
On Mac OS X/Darwin .so and .dylib extensions are both used. In fact .dylib extension is used for dynamic libraries (libwine*.dylib) whereas dll.so and exe.so extensions are used for the dlls and the exe. So your patch would break winegcc on Mac OS X.
Pierre.