Fix unlink() for CacheEngine::clear() failed on windows.
Fixing some errors related to unlink() on windows
Merge pull request #1497 from hiromi2424/fix-unlink-windows

Fix unlink() for CacheEngine::clear() failed on windows.

Refs #3930