Use macosx-g++ target for ANN on Mac.