std::function bindings fix for vs2012.