Add threaded flag to recompilation