Adding basic support for multiple libraries

adding first implementation, see #16