Link with $CXXFLAGS (required for ```-stdlib```); disable check for GCC when applying ```-fno-exceptions``` and ```-rdynamic```.