in reply to xs problem
It can't find libpfq - this is a dynamic linking problem with that library rather than a problem with your XS code.
/J\