Improve detection of GST libs