Fix cocoa detection in cmake scripts.
Fix for sdl_timers on MacOSX.