Einstein-like conditions and cosymplectic geometry