update check for g++ to recognize latest Apple version of g++