support building on Mac OS X