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