Switch of the preference for static libraries