Adapting config and Makefile to new Compat-5.2.
Adding compatibility to Lua versions 5.0, 5.1 and 5.2.