Mark libc ctype functions as pure where applicable.
Add alloca declaration for GNU
Merge pull request #412 from ibuclaw/purelibc2

Mark libc ctype functions as pure where applicable.