databases/db18: Fix build with LLVM15
MFH: 2023Q1 (cherry picked from commit cb188cbfd474c422243e87675e6e0861de4e1fc2)