Reverted use of libstdc++ and set env vars for OSX