Fix for tiny API change in OPAM

using functions from opened OpamTypes :/
Merge pull request #91 from AltGr/fix-api-change

Fix for tiny API change in OPAM