genfun.cc: argument of mp_get_memory_functions should have C linkage