Compatibility fix for MAC OS.