roguelike utility library in c/lua