support gc fallback for cgo imports