configure for arm processors and removal of avx check for OSX