BUG: ifort has issues with optimization flag /O2

Fixes scipy test failures.
Merge pull request #4602 from cgohlke/patch-2

BUG: ifort has issues with optimization flag /O2