Fixed a bunch of compiler warnings. Because I'm anal.