Add compiler libcxx flag to test.py