Fix buildscript on Mac OS X