Loading a script twice fails finding a shared library

I thought that the reloading issue only appeared when I used my own library because I reported a similar issue last year.

I did not expect this could also happen with basic STL classes, because I have never seen it on my main machine.