Make cgo work on the host platform