The Dbm module was removed from the Ocaml distribution in version 4 and is now located in it's own project here: https://forge.ocamlcore.org/projects/camldbm/
Simply installing that package doesn't resolve the issue. It seems like some tweaking of the build scripts is required.
https://gist.github.com/b398af5cdff033000477