Adjusted Mac script to compile with OS X 10.6 support.