sort contrib libraries before include them