Changed `__typeof` to `typeof`

This updates the use of `__typeof` to use `typeof` which is supported by the newer versions of clang.