Add compiler timeout; guarantee temp dir is deleted after creation