updated includes, added stdlib.h include to basicmath.h to avoid compilation problems down the line