AdrianC: Fixed undefined constants on Mac OS 10.6.8