fixed gcc-related problems