Deprecated GetFolderPath function on windows platform.

The windows code now uses the newer (vista+) SHGetKnownFolderPath.
Paths returned by the windows code are now limited to an artificial
4095 characters, but this should in practice not be hit.