Fix per-target dep calculation

For example `make show-downstream-deps-winpthreads` didn't show any deps
even though i686-w64-mingw32.static target is set.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Merge branch 'master' of https://github.com/mxe/mxe