added cgo flags for windows using mingw