switch all SConstruct files to make shared objects and linraries

fix a bug in genfmt, ck uninitialized in import.f
small fix in main nose file