fix library finding
small fixes