Added platform specific cgo flags.