Added <functional> include due to this being required for linux compatability.  This was not required for OS X.