Fix for main window starting at X==0 location

Fix for threading/OOM issues
Now compiled for MSIL, target framework 4