Compatibility fix for net40