fix build rule for validation.cpp