Fix link errors when linking with dbal functions