lib: allow building with only core library (no cache and no lmdb)

32 jobs for separate-library
in 4 minutes and 14 seconds and was queued for 6 seconds
latest