Makefile improvements + added support for LuaJIT

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>