fix Mac segfault from CoreFoundation in Mac-Assets