Fixed several GCC compile warnings