We should use the libraries module methods for version comparison since we have access to them anyways.

See #2074499: Add support for views captions from field & flexslider 2.2.0 thumbnail captions for an example usage.