Add method to support dynmaic stub function in dynamic library with function name