Fix a bunch of stupid compile errors.