build: fixed a configure error with a totally clean tree