Fix intrinsics detection

This fixes intrinsics-related detection code in numpy.distutils.

Only tested on OS X Maverick + clang, waiting for travis-ci for linux+gcc and I will test later on msvc+windows.