Removed X specific (and unuseful) code causing OSX compilation issues
when OCE_OSX_USE_COCOA is enabled.