build: fix libtool's refusal to link static libs into a dll
build: fix libtool's refusal to link static libs into a dll

(cherry picked from commit 1723862e82926ef24ccf1d098dc02933f893cf48)

reddcoin-project/reddcoin,reddcoin-project/reddcoin,reddcoin-project/reddcoin,reddcoin-project/reddcoin,reddcoin-project/reddcoin,reddcoin-project/reddcoin