Use Foundation (Core) data types
Reorganized classes in Dialog.mm

Mainly moved the class implementation after it's interface declaration.
Remove unneeded import of Carbon.h