Long double versions of math functions

Import long double versions of a bunch of stuff from openbsd.

The last time I made the same mistake, @sebastien-villemot noted that we shouldn't raise the major version just because we added functions, but only when breaking compatibility for existing functions. Would you revert that change? Just raise SOMINOR instead.