fix build on mac os 10.9