Added support for Darwin (Mac OSX)