adding explicit casts in cephes to avoid warnings