[Bug 8612] lmdb build fails on illumos / solaris