Windows build fix.

Fixes these errors:
https://gist.github.com/thedax/111a0b6177db7960f3dd