Updated cgo directives for Mac OS X