Please read what I wrote again carefully. You installed the modified library on GitHub. If you had instead installed the original library code that is written on the Playground page by copying and pasting it to files you created then there is no way you would get that error message since line 31 of SimpleTimer.h is not
#include <functional>
and in fact that line doesn't occur anywhere in the Playground page library code.