jit: Support both cgo- and non-cgo variants.