support building on Mac OSX