Search for libdevice
relative to shared library
#1176
Merged
libdevice
relative to shared library
#1176