The valves and fans idea is an interesting thought.  I'm a bit leery, as what happens if the computer is dropped into the water while the valve is open?

I was planning on using liquid gasket to seal spaces that are not sealed in fabrication.  Considering that there is a wide variety of possible temperatures that occur in automobiles, I wasn't too concerned about expansion and contraction.