Resolve lib_name via DynaLoader
Android needs -lperl