Updated build script and tools to support .NET Framework 4