Adjust buildscript to build more reliably under Darwin