Fix autodetection of cosl(), sinl()

Autoconf must have changed since we last looked.  Thanks
Åke Sandgren for the fix.