move checking for apple-gcc42 to the end when searching for compiler on OSX, update #2769