fixed gcc problems