2. Add a patch to cast a floating point number before using it to resize buffers, unbreaks the build on NetBSD.