sounds like a job for Inline::C have you tried it that way? instant wrapepd libraries
I was actually hoping that h2xs would do most of the heavy lifting for me; then I could focus on the Perlish interface to the underlying library functions. I am very slightly more experienced with XS code, but it's probably a good idea to try different things...
John