Rewritten lsf_driver to implement lsb_xxx() calls through dlopen()

The lsf libraries libbbat and liblsf are (for some reason) quite painful to work with. With this PR they are opened on demand using dlopen(), this way unnecceasry runtime dependencies are avoided.