Prepare library to be build and installed as a shared library

Change-Id: Ia0c6df32095d3f8102ba5acd4417acbb61090287