Fixed #3547: Correctly recognize Mac OSX as a desktop platform