Add #getLibrary method to get access to underlying library.
Fixes #4