Removes potential buffer overflow in win32 code as reported in #901.
Also simplify the MyGetSpecialFolderPath function, as SHGetSpecialFolderPath is always included in Windows XP, the minimum version supported by bitcoin:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762204%28v=vs.85%29.aspx
Warning: Untested