fix gcc build