Fix sharkd compilation on some <glibc-2.16 or <gcc-4.8