Adding static library target.
Changes to the public API (added some missing parts).