Remove dependency on Cocoa.