Detection of static or shared libraries