fix build for .net 4