Fix static-builder on win32