basic fixes to ext/odbc