fix compilation errors/warnings when compiled with gcc format-security feature enabled, bug report #85688
trying to build on Travis CI