Fixed up the Go implementation to work on Windows