improve includes in util/math_function.hpp

This commit removes the redundant <math.h>, and adds the necessary
<stdint.h> and <glog/logging.h>.
Merge pull request #396 from longjon/math-includes

Improve includes in util/math_functions.hpp