Add compiler warnings, clean up code accordingly.