tweaks and fix porting of LuaUnit