Turned on warnings in the previous commit. Fixed said warnings in this commit.