Making export declarations consistent
Fixed #538: std::function and boost::function do not have a reset member function