Get rid of Carbon dependency in Cocoa dialog