Changed samples to target .net 4

Samples now target .NET 4 rather than .NET 4.5 so they should be usable
by more people.