phash: fix resizing of hash file on Windows
Merge branch 'lmdb' into epdimport