lua-5.1 and 5.2: fix lib name
lua-5.1/5.2/jit: fix order of includes (make sure we include system ones last)