In this case I think that you should write your own hooking program to dynamically patching the DLL during runtime.
LibHarmony should make in-memory patching becomes easier. Just need to wait until the dll is loaded into memory and then call your patching module.