Merge pull request #6711 from lioncash/handler Common/MemTools: Make handler function internally linked on Windows