std::function bindings fix for vs2012.
Merge pull request #34 from dumganhar/win-lambda-fix

std::function bindings fix for vs2012.