configure: move Cocoa incompatibility checks to Meson