Update mdb.c and midl.c from 7cab7b9@git://gitorious.org/mdb/mdb.git

There are few fixes related to deleting using a cursor. For more information see influxdb/influxdb#666