Firebird compatibility

This branch fixes couple of issues with Firebird ODBC driver OdbcFb.