Modified configure.sh and Lua makefiles