Create an alias for each dll and call the appropriate aliased function at runtime.