Adds preliminary standalone support for Mac OS X.