fix for earlier gcc