Fix build for gcc 11
Make sure that the function pointer checks in the dispatch macros are done at compilation time, as gcc 11 raised warnings for the current solution.
Make sure that the function pointer checks in the dispatch macros are done at compilation time, as gcc 11 raised warnings for the current solution.