This fixes build on, at least, NetBSD 8.1 with gcc 5.5 and SmartOS with gcc 7.
@@ -35,7 +35,7 @@
#include <google/protobuf/text_format.h>
#include <float.h>
-#include <math.h>
+#include <cmath>
#include <stdio.h>
#include <algorithm>