Fix MacOS 10.6 build