Fix shared code as library on wear