sqlite: only disable optimizations on gcc-4.2