Fix build error (clang-421.0.57)
Do not remove old targets if ninja failed