Use fabs for floating point abs instead of various extensions.

Hopefully will compile everywhere since it's not using platform-specific extensions.
Thanks Heruedhel for pointing out what looks like the right solution in #7296.