Have separate source folders and projects for .NET 4.0 and 4.5.1.