Fix isnan on windows compilation