libanalyze: cleanup
libmid: fix compile