DB/SAI: Fix a few linking errors.