fix some pollution of namespace with std::signbit

fix problem with
https://github.com/BVLC/caffe/issues/769