fix a redefinition warning on yosemite