Add the 1.0.48 and some additional patches from master which include some fixes for GCC 14 support. Signed-off-by: Chris Packham <judge.packham@gmail.com>