Hotfit: Automatic resolution of libraries for gems