model: add missing functional header

g++-4.9 shows: std::mem_fn needs the functional standard header.