Only link gnustl_shared where required

Fixes liviconv linker problem