Merge base libraries into a single library (WIP)

Related to issue #18.