[build] ifdefs for some sqlite defines