Fixing perl issues on Windows