Make dbqueue non-global

This fixes execution time errors on Windows machines.
Allow the path to the magic file to be changed

This also allows libmagic to work *at all* on Windows machines.