Electromagnetic corrections to hadron-hadron scattering