fixed build error of copying null dylib