Fix compile warnings under GCC