fixed a compile error with non-SQL builds