[Mac] Stop using Cocoa API deprecated in 10.6
[Mac] Fix stuck menu stuck highlight when command opens GTK dialog