add libhw_legacy shared library