[crt] Use built-ins for counting leading/trailing zeros.

Fixes #411.