Fix for tiny API change in OPAM

using functions from opened OpamTypes :/