Tools/MeshExtractor: Some more cleanup and memory management improvements.