Move Forge dependency resolution to upper level

The deps are used in the other projects as well.
(TODO: Remove dependencies from interface.)
Link statically to GCC on Windows