fix crashes with gcc491
make David A. happy..  ;)
addressing comments by giulio
Merge pull request #6652 from deguio/generalFixes

fix for 74x gcc491 IB