r8841: initial changes for uffi compatibility, but not finished
r8841: initial changes for uffi compatibility, but not finished

intronic/clsql,sshirokov/CLSQL,sshirokov/CLSQL,intronic/clsql,sshirokov/CLSQL,intronic/clsql,intronic/clsql,sshirokov/CLSQL,ryszard/clsql,ryszard/clsql,ryszard/clsql,ryszard/clsql