Fix a bunch of compiler errors