Fix external linkage for numba function