Fixed compilation

Set to .net 4.0