Try again to fix isnan failures on Windows

Intel 12 complains with:
  ...\include\mathimf.h(36): catastrophic error: #error directive: "<mathimf.h> is incompatible with system <math.h>!"

Include mathimf.h first as is done in src/full_matrix.cpp, as this file
does compile without trouble.