fixed CMakeLists.txt files
more compile fixes
tweak unit test to work with mingw. Still needs fixing.
oops. typo in av_log_set_level