fix build for net4.0