Fixed compile script

Change .NET version to 4.0 since it was using that.