just append -static to static libs in order to keep the linker from always picking up the dynamic version