Fix g++ compiler warnings