sim: sh: fix isnan redefinition with mingw targets