apply libpatch changes on Windows