Try fix travis ci produced build errors on gcc and clang.