Fixed casts and strcasecmp for MSVC
Added test case for zhash_autofree
Merge pull request #225 from hintjens/master

Fixed casts and strcasecmp for MSVC