Fixup dynamic library on Darwin.