fix warnings under mac