Added const to custom cross function get_vtable_fn and get_portable_base