Changes to scald build file to stop stack overflow