Download DBD::SQLite from the CPAN. Untar it, change into the created dir, run perl Makefile.PL then edit the resulting Makefile. Look for line starting CCFLAGS= (be careful it will be in a comment at the start of the file and it is not that one). Add --std=c99 to the end of that line. Type make, make test, make install.