Mark libc ctype functions as pure where applicable.
Add alloca declaration for GNU