include cmath only under C++11 (#36)
Merge branch 'kazuho/issues/36' (fix #36)