Fix build problems related to function pointers