LUA 5.2 compatibiliy

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>