configure: add -lgdbm if needed for ndbm support