direct2d is dynamic loaded, supports mingw

The headers are from https://github.com/2of1/d2d1headers
But many compile error even simply include d2d1.h. So now that project
is not a submodule of QtAV.
config.tests: inttypes.h for msvc, link error fixed