fix net40 build