sync fix for older gcc