Fixing DLL references