Hi,
try
./waf distclean
rm -rf build
./waf configure <add more options if necessary>
./waf
If the error persists, check the wscripts if the modules that contains the offending files.
Mind that anything in scratch ending in ".cc" is always compiled...
Cheers,
T.