fix: fix gcc compilation errors