Shared compilation in dependency libs

Changed library compilation configuration from static to shared in
order to fix compilation issues.