Add support of Mac OS X (partial).