diff -Nuar Coin-3.1.3.orig/src/fonts/freetype.cpp Coin-3.1.3/src/fonts/freetype.cpp
--- Coin-3.1.3.orig/src/fonts/freetype.cpp	2010-03-02 15:20:09.000000000 +0200
+++ Coin-3.1.3/src/fonts/freetype.cpp	2013-08-25 00:38:16.678172194 +0300
@@ -32,6 +32,8 @@
 
    20050613 mortene. */
 
+#include <cstdlib>
+#include <cmath>
 #include "fonts/freetype.h"
 
 #ifdef HAVE_CONFIG_H
