fix windows.go and make types linkable in godoc