Fix OS X detection.