add a flag -lsupc++ for libcxx-3.3 or later.