Relativistic mechanics, cosymplectic manifolds and symmetries