Update to upstream release 1.4.0.