Some math.h fixes, c99 isX macros.