Changes to the non-Cocoa code to allow Cocoa to build.

When using Cocoa, the GTK code needs to be disabled.