Make CSW compatible with jdbcconfig

These changes make it possible to build CSW and run unit tests with jdbc-config loaded.