Support -j limit in batch mode.

It can be useful to compile in smaller batches if there's an
error.  Currently if one file fails, the entire batch fails.