cocoa: fix compilation on OS X 10.8