Move sign macro to libavutil.