Add script to generate an executable via pnacl-clang, pnacl-translate, etc.

Test reading of phdrs and fix serialization that depended on "int" type.