More robust removal of CRT dependencies from dlls in the windows build

Fixes a problem with the 64-bit ImageMagick core DLL getting corrupted
by the old removal process.