fix warnings when "--with-pmi" is used