optional thread support for --relink