BUG: ifort has issues with optimization flag /O2

Fixes scipy test failures.