Add minimal Apple Event support -- we handle the 'aevt'/'quit' event.