Windows porting

![](http://go-gyazo.appspot.com/3faa2c137664beb3.png)