Adapt library to composer usage