Fix building with MinGW

- Include string.h for strdup()
- Fix warning with comparison between unsigned and signed ints
Use %APPDATA% for settings/saves on Windows
Merge pull request #1123 from dorkster/windows

Use %APPDATA% for settings/saves on Windows