Add lua as an external submodule

Remove the dependency on the lua package and build lua ourself from a
submodule.