fix UB casts of function pointers to void pointers