Also avoids libffi.dll dependency on Windows.
Modifications accumulate and many are not suitable for nixpkgs upstream. Based on nixpkgs 3f629e3dd5293bd3c211c4950c418f7cfb4501af