gitian: fix win32 build after configure bdb changes

bitcoin incorrectly linked against the dll after the configure changes, so
ensure that only the static lib is installed.
gitian: remove obsolete --disable-debug flag
Fix minor unit test memory leaks
Merge pull request #3017 from sipa/unitleaks

Fix minor unit test memory leaks
Merge pull request #3014 from theuni/gitian-fixups

Gitian fixups
Fix gitian: bitcoin-deps is at version 0.0.7
Bugfix: nHeightLast instead of nHeightFirst
Merge pull request #3019 from sipa/fugbix

Bugfix: nHeightLast instead of nHeightFirst