Fix warnings from GCC 4.8