Fixed elif/elseif error that made highgui-windows fail on mac+cocoa.
Merge pull request #1256 from kamjagin:2.4