fix build on MacOS 10.9