Libyans use 'leftovers' to defeat ISIS