Add -lgdbm_compat to line 104 of gdbm-1.8.3-fhs.patch. Python2.6 would not build "dbm" module without this.