cgo: small fix for openbsd

OpenBSD doesn't have errno unless you include <errno.h>.