Fix sincos errno setting (bug 15467).