prefs: fix an instance of overzealous warning crushing.

Reading the preferences file had been broken because the section names
were being written as numbers instead of as strings.

By casting the arguments explicitly to char, the preferences file is
fixed, and the warnings are still gone.
Update gitignore.
prefs: write prefs to the user's home dir, not the resources dir.

This change is likely not portable on windows, but it's mostly a quick
hack to make bundling on OSX possible.

The configuration will be rehashed in a better way at a later date.
main: add resource case for bundling on OS X.
Add scripts for creating OS X app bundles.

Move CandyCrisis.icns to the bundle directory, too.
Makefile: add osxbundle target.

Makes an app bundle.
Remove preferences from resources dir.