Add maths! Disable NI_DASSERT during unit tests!

*dances*
Remap math functions to tgmath rather than define new macros.