use min version of lib when possible