Fixed compilation. It was broken when Lua51 is not installed in the system.