Fixed static linking for win32