updated for .net  4.5 changes.