Duhlin master

This pull request fixes many issues on win64 unicode with visual studio 2008.
This commit includes the pull request from mcg1969 which solves compilation issue on this plateform.

It has been tested with sqlite3 odbc driver.