Fixed Mac compilation