Fix mac compilation. #2