fix compile error related to function pointer types