remove old LGPL code copied from SharpDevelop 4