Riml.compile_files now sets limit of 4 threads running at once

batches compilations 4 at a time