add windows support. closes #1