The readme for L::P::Y-0.08 says you need SWI-Prolog 5.4.x or newer. Looks like you're using an older version of SWI-Prolog (5.2.5?) - one that presumably does not define 'PL_blob_t' and the various PL_BLOB_* constants.
I think the best advice is to get the latest L::P::Y distro (version 0.08), and the latest version of SWI-Prolog (version 5.6.1).