Use the correct default download folder on windows vista and later.
Remove a few compilation warnings.