Be more specific about return types of some methods.

This would allow to call addCompilerUsedGlobal on some
Clang-generated globals.