Fix a few printf format and security warnings.
Add -j4 to make command in .travis.yml