Updated DLL loading mechanism