move if.c if.h common.h from libts to src, libts is in focus now