Fix build on Ruby18. We should specify endian for UTF16/32.
Merge pull request #471 from kennyj/fix_build_on_ruby18

Fix build on Ruby18. We should specify endian for UTF16/32.