Improve SSE version detection.
Add SSE4 detection.
Fix setting of some opt flags in Makefile.in.