update extensionfunctions.c according the latest math.h