Fix Mac compiler errors.