Revert "apply libpatch changes on Windows"

This reverts commit 267cb921e031b38f2d80cd87938f33297cef645f.