Removed dependency on AppKit, and some unnecessary frameworks.