Added CMake scripts for Firebird backend and fixed it to pass all the tests

I've encountered and applied a patch by from Sergei Nikulov, adding CMake scripts.
But still there were some problems with tests, mostly related to parameter binding.
Now tests are OK and valgrind is happy as well.