libmid: fix compile #2