Use copysign from C++11 if available