fix compilation with dynamic casacore, switch back to gdbm