Fix code generation support for .NET 4.5.1

This change causes the build tool to generate code for .NET 4.5 when the target framework is 4.5.1.