Fixed lots of tiny compilation issues.