Removed limits.h reference from math.h
Changes to mathtests to allow compiling small and compact memory model versions.