I have 20,000 polylines in a .gdb that represent about 5,000 building footprints. Some of the building footprints have pretty substantial gaps (image below). I would like to snap the polylines closed into polygons so that I can extrude the buildings... Is there an app for that?

I have access to ArcView 9.3, but that hasn't been very helpful. I am hoping that there is something in the opensource community with a "Clean" or somesuch functionality.
Thanks in advance for any thoughts!