added windows support and made build automatic, will probably not do a pull request any time soon again