a little optimize libraries linked list processing
use case sensitive/insensitive library names comparing