Fix build failure relating to ToLineString.