Added limitation to which liblua version to use.

Apparently liblua 5.2 is not source code compatible with liblua 5.1 (e.g. lua_objlen is missing), I added a cap to the version range check.