more robust compile script - quieter, no testing perl, caches between builds