fix build on snow leopard

this will fix compilation on snow leopard