Add Mac OS X compatibility.