included <functional> to fix build error
Merge pull request #20 from krobelus/master

Fixed compilation.