src/ffi: fix use of c_name for mangled names