More robust checking for AVX support. We also need to check if the XCR bit is set as well.

Just want to get maister's input on this one, since Squarepusher said he might have some issues with this code.