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

This is a re-run of a previous commit, but should be fixed now. It previously failed on 64 bit since I was using the wrong builtin.