Enable compilation of libxml2

Enable the compilation of shared library

Change-Id: Ib065b072ee523252c81e069b4ed8e5dfd1968674