But because of this original definition the equator will work out to about 40000 km.
You have to add the fact that earth is almost spherical to go, from there, to “the length of the equator is about 40 million meters”.
Reading that Wikipedia page, I think it already was known when the meter was defined that the polar diameter of the Earth is smaller than its equatorial diameter.
There's some difference (~7km, if we believe wikipedia) attributable to the original measurement of Earth's circumference being off, and much much more difference (~67km, ten times as much) attributable to the fact that the earth is slightly oblate. (In other words, meters were defined by reference to the polar circumference, but the equatorial circumference is larger than the polar circumference is.)
The equator is more than that because of the oblateness of the spheroid.
And nowadays, the meter is defined in terms of natural units (time and the speed of light) in a way to be compatible with the original definition by the meridian.
One minute of latitude is always 1nm
This is almost true (in real life). The meter was originally defined as 1/10,000,000 of the distance from the equator to the north pole. Given that the earth is a fairly "nice" sphere, the maximum distance between any two points on earth is very close to 20,000,000 meters.