Added support for static linking and sqlite dependency resolution