Fix Xcode 6 compilation issues

Xcode 6 fails to build this files because they are C source files and they include QuartzCore which is Objective-C framework.