Fixes build failure on Mac OS X 10.10 beta in highgui/src/window_cocoa.mm (Bug #3737)