Fix compilation with freepascal

* Add TStringHash class
* Add missing overloads
* Enclose unused function of zlibh in a define