import cmath instead of math.h

the os x c compiler was complaining that it couldn't find std::sqrt
Merge branch 'master' into cython_shared_ptr2