Fix code generation support for .NET 4.5.1
Merge pull request #46 from sharwell/support-net451

Fix code generation support for .NET 4.5.1