Replace broken _CTYPE_* definitions with correct.

These aren't currently used, but are used in the updated libcxx
port.

Fixes issues #939.
Fix large values in llvm_ctpop_i32().

Large values looked like negative values, we have to do an
unsigned shift.

Fixes issue #966.
Merge pull request #975 from ehsan/openal

Only pause/resume in progress sources if the buffer being played back is...
Merge pull request #974 from waywardmonkeys/fix-ctpop

Fix large values in llvm_ctpop_i32().
Merge pull request #973 from waywardmonkeys/fix-ctype-decls

Replace broken _CTYPE_* definitions with correct.
Merge pull request #977 from ehsan/openal

Initial support for positional audio
fix OpenAL makeGetValue indices
Merge pull request #979 from vvuk/openal-indices

fix OpenAL makeGetValue indices