phash: eliminate a bunch of compiler warnings, always write hash file if it's missing when PH is enabled.
Added MinGW compilation instructions for Kyoto cabinet