add wsrlua.c and update the makefile