Don't statically link to some libs we don't directly use.