Replace AWT code for getAvailableDisplayMode and other DisplayModes
stuff to use pure native Cococa code.