Added an installation script.
Mac OS X compatibility.