Fixed build on MS.NET