fixed gcc compiler-errors