fix non-asm dlfcn setup code