EMI: fix compiler warnings