Fixing compiler warnings, adding SConstruct file