added some Windows support. Should be tested though.