configure.ac,diritor.cc: Avoid doing link tests with libmagic in
configure as they fail on mingw due to not automatically picking up
libraries which libmagic itself depends on.