Add gdbm dependency to Python.

Python depends on dbm.  Add explicit dependency on gdbm so the build
doesn't accidentally pick up some other locally installed dbm library.
Prevent Python from picking up gdbm_compat since it isn't strictly
required, and the default gdbm package on some platforms includes
gdbm_compat by default which causes health_check to fail later.