Fix warnings on GCC 4.8