Improved lua makefile