Removed CoreFoundation dependency

No more references to CoreFoundation are made.