Improve scons project. Improve arch width detection. Fix gcc warnings