Version bump to 5.1.40