Fixed Mac OS compilatiion

Fixed Mac OS compilatiion