CMake: fix exttest
libmid: simplify ffread + cleanup