ITS#7955, #7671 fix MDB_PREV_DUP
ITS#7956 fix compact of empty env
Merge remote-tracking branch 'upstream/mdb.master' into fixes

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>

Conflicts:
	libraries/liblmdb/mdb.c