Fix Mac compilation error