fix build failure with gcc 4.9