Add hashtable code from openzap/freetdm to FS core
change from sqlite hash to newly added one
fix windows build for last commit