ts_lib: remove archive and shared object files on clean
ts_lib: strshift fixes for const and int values