Fixed compilation errors on Linux
Don't forget to build LMDB first