Sheaves on surfaces and virtual invariants