Fixed lots of compile errors.