fix build for net40