Target framework changed to .net 4.0, some additional changes for first deployment on real server