Make static solver libraries static regardless of BUILD_SHARED_LIBS.