Add support for newer Snap library.