Fixed the wrapping of functions taking a function pointer.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>