Fix a bug in the sky drawing code that causes clang to mishandle sky rendering. This was uncovered by new warnings in gcc48.
Move all of the MySQL stuff into its own files. This is so much cleaner.
Fix a bug in the enforcement of SVF_DEAD_MONSTER.
Include inttypes.h rather than stdint.h. c99 requires that inttypes be present, not necessarily stdint.