darwin: fix unnecessary include headers

This file doesn't use any Cocoa functions, CoreFoundation.h is enough here.
This line causes compilation error on iOS environment.

And also, this file is compiled as Objective-C file but I think this is not necessary too.
This file doesn't use any Objective-C feature, and can be compiled as plain C file.
(This pull request doesn't care of this though)