extract cookie_io_functions_t memfile_func

is now inside the memfile source
also should fix the compilation issue on travis