Fold lm programs into lm//programs target, handle single thread