fixed gcc compiler warnings