[misc.h, CHART] Move #include <math.h> from misc.h to chart.c

Also removed the dependence on (non-standard) M_PI constant. Rather
lets define PI where we need it.
[GRID] Add messages MC_GM_[SG]ETCOLUMNWIDTH and _ROWHEIGHT.

Also updated example ex_grid to make use of it.