BUG: ifort has issues with optimization flag /O2

Fixes scipy test failures.
Merge pull request #4603 from charris/backport-1.8-4602

BUG: ifort has issues with optimization flag /O2