Fix some Mac compilation warnings.