[Mac] Don't initialize NSApplication when running as guest

Based on a patch by John Raven and Harlan Hugh