Fix libc++ and libstdc++ mixup on OSX with swig 2.0.11 or earlier