Virial pressure of periodic systems with long range forces