lua 5.2 support
do not break compat with lua 5.1'
DESTDIR compatibility

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