Fix build to correctly use in-tree version of lua (fixes build error when lua was not installed, too)