Relocated math utilities from m_misc to libdeng1

These are for use in C language sources and should be kept separate
from the C++ math in libdeng2.