Fix AVX2 CPU detection on some systems

A strange corner case related to max_extended_cap caused it to be detected
on systems where it wasn't really supported.
Merge branch 'master' of https://github.com/DarkShikari/x264-devel into lsmash+mod