Fix DLL permissions