Fix VC 2010 build

 * Add using declaration to avoid ambiguity between std::placeholders
   and std::tr1::placeholders.

 * Include <functional> rather than <tr1/functional>