Set Polygon to inherit class type Entity.
Fix for merging programs set to two different modes.
Moved IniFile and Settings to main solution.
Moved native windows methods to Win32 class.