fix build @mac

FIx build on Mac 10.9.5,  Linux build untested.