cleanup for inter/NOBOM
utilize codec argument for inter/TRIM-WIDTH to eliminate the use of environment variable and bsdconv_ctl;
fix bug introduced by counters architect change