Fix Mac compilation problems.