LLVM 3.5 fixes: add missing 'global' qualifier to avoid
casting pointers across address spaces which crashes the SROA
of 3.5. When the qualifiers are there, 3.4 crashes so this has
to be done conditionally.

Added some missing analysis requirement registrations. Seems
LLVM 3.5 is more strict with these.