fix crosscompiling, --lua-dir was being ignored