Install to DESTDIR
Fix compatibility with Lua 5.1

luaL_openlib was removed in favour of luaL_register
Fix compatibility with OpenLDAP 2.3

Several functions were deprecated
Fix potential Lua error (attempt to concatenate a nil value) when ldap_parse_result returns a NULL error message
Fix bug introduced in 9d744fb7f7d6 (was passing struct instead of pointer to memset)
Use Lua 5.2 and add compatibility fallbacks for Lua 5.1

Lua 5.0 is no longer supported!
Stricter argument checking in next_message and return proper values from lualdap_search

lualdap_search did not return a state, hence none was passed to next_message.
 Apparently earlier versions of Lua implicitly used the argument to the
 generator (lualdap_search) as state argument for the iterator.
Assert-relaed fix

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Merge pull request #1 from msva/master

a little bundle