fix issue 3: build failure with earlier gcc