remove the need for C99 math (closes: #1579)