Determines whether the application is running on Mac OS. Based off Mono's XplatUI.cs, licensed under LGPL.