Fix scons warnings for 'The env.Copy() method is deprecated; use the env.Clone()' and 'BuildDir() and the build_dir keyword have been deprecated
More harder building flags to find compile errors and warnings