Setting archive output directory with old methodology when using MinGw

This branch re-enables compilation with MinGw. Since commit 62968735ad099282a99236f68dda4b01286a1835 the archive output directories of the additional libraries were not found anymore when using MinGw.