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