Added new configurations

Added DebugNET40 and ReleaseNET40 with v4.0 as the target framework and
added the compiler constant NET40 so the #if !NET40