add lua helper.c
rename framerate.c
move rect.c and color.c to libx directory