Allow lua `debug.sethook` when compiled --with-debug

Luajit needs xcflag set as a compile option to allow setting `debug.sethook`