Fixed problem with bind and boost::factory