Fix duplicate definitions in Mavericks

Works in Mavericks but I'm not able to test it anywhere else.