add win support

WIP, not yet tested actually on win, but verified that everything continues to work on a proper os