Fix My Documents backslash-to-slash & preferences on Windows
Applications should not save directly to the %APPDATA% location, but should create a folder of their own to store data in.

Note: getUserHomeDir is flawed in that you should not modify the contents of strings
returned by getenv.
Don't use GC_set_handle_fork on Windows