build fix for gcc