This enables cgo when cross-compiling certain tests and binaries to Linux, while disabling cgo for Windows and Darwin.