Fix build on .net.