Fix compilation error in MinGW, invalid return type (pointer to function...

...)