add flag to control whether compilation is done in parallel or in series