fix #4251 (win32 compile / linking)