Added support for building on OS X