> I was about to go and look at this, but I had a problem when attempting to> compile with MSVC.
Thanks! Here is a v4 which includes your fix.
-- Fabien.