Use static library dependencies not when the library is built but when it is used.