Fix compiler warning about `[NSApp setDelegate:self]` in OS X Yosemite.