BUG: make checking for sse intrinsics more robust

check for two intrinsics from [ex]mmintrin.h instead of only checking
the existance of the headers.
E.g. mingw 4.2 emmintrin.h can be included even if SSE2 is disabled.
closes #3760
Merge pull request #3780 from juliantaylor/sse-configure-check-1.8.x

Backport PR 3772