fix for newer gcc