Fix Windows support

Per @mattn in clib/clibs#26