Add make and cmake building flags and C++ macros to make LMDB optional
Add make and cmake building flags and C++ macros to make HDF5 optional
Add BUILD_TESTS for cmake to make tests optional
Add make & cmake building flags and C++ macros to make LevelDB optional
Update installation documentation about the optional dependencies