Windows build fixes for latest LMDB