Fixed app_options not working in OS X 10.10 Yosemite and warnings about [NSApp delegate]

Fixed app_options not working in OS X 10.10 Yosemite and warnings about [NSApp delegate].