fixed gcc build