Add building with scons, remove most warnings.