create constants for multichar constants

Multichar constants are not portable as the byte order is undefined.  Use a
constant value instead.  This avoids a warning when compiling with gcc 4.8+
(-Wmultichar) and makes the code more portable.
spruce up .gitignore

Update gitignore to ignore additional temporary files and format more similar to
LLVM's .gitignore.