Revert "removed windows only code"

This reverts commit 0550851570d0b73fab792d8fed72709c5e33f7ab.