add support for ffs libc function.

This file was pulled straight from musl's latest release.