Improve external library management error handling
Improve external library management error handling

Change-Id: I2a0b7003f0bd2987fa101285977fa0621688017b
Signed-off-by: Caiwen Zhang<48f0592afc0a377911a8c026109b5f1af886755a@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/327
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Patrick Lankswert <97f91fabd828c4bf3dd3b3638f2b6a4d81d5fd96@intel.com>

tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,iotivity/iotivity,rzr/iotivity,rzr/iotivity,kartben/iotivity,santais/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,santais/iotivity,santais/iotivity,santais/iotivity_1.1,rzr/iotivity,rzr/iotivity,kartben/iotivity,santais/iotivity_1.1.0,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,kartben/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,rzr/iotivity,kartben/iotivity,santais/iotivity,santais/iotivity_1.1.0,santais/iotivity,iotivity/iotivity,iotivity/iotivity,santais/iotivity_1.1,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,santais/iotivity,kartben/iotivity,rzr/iotivity,kartben/iotivity,tienfuc/iotivity-democlient-snap,iotivity/iotivity,santais/iotivity_1.1,santais/iotivity_1.1,iotivity/iotivity,kartben/iotivity,iotivity/iotivity,iotivity/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1,kartben/iotivity,iotivity/iotivity,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,rzr/iotivity,santais/iotivity_1.1.0,santais/iotivity_1.1,WojciechLuczkow/iotivity,santais/iotivity_1.1,WojciechLuczkow/iotivity,santais/iotivity,tienfuc/iotivity-democlient-snap