Add MacOSX compatibility.