[MacPorts] #49903: libcxx on 10.6 and earlier: undo changes when deactivating