also reset reqs, seen and to_build when only $prepare is true.