add m4 and fix compiler warning flag