Allow dynamically shared library

Change-Id: I08c4019e28ca68abb1241370294ac4dd1303fe34