Fix detection of OSX.