New build script using the waf system
Remove code that caused compiler warning.

Extra code that did nothing, cleaned them up.