Check for OSX.

Get tests to compile under Mac OS X.