Properly detect Unix platforms (including Apple's OS X).