Make cnacl honer passed in flags.
Changed inttypes/signed.h to not rely on number wrapping of signed ints.