Actual fix for gccC8 -Wcast-function-type

gcc was right to complain!
24 jobs for master
in 0 seconds and was queued for 29 minutes and 41 seconds