Refactor mdb_midl_append, add mdb_midl_grow()
Fix 66c839f0292d9aea12bf93ef6568ac2bd2ca0fc8

Forgot #include <errno.h>