Fixed several compiler errors.