Add support for building on both Mac OS X and Linux