only set lib paths if present