Fixes win32 build errors caused by #913 

Moved the `isnan` and `isinf` compatibility functions from `dynamics_processor.cpp` to `lmms_math.h`.