Config script option to disable AVX.
Fix compiler (Gcc 4.9) warnings.