win32: little static link hack for windows builds