Fixed error messages when some unrelated targets can't be built