Revert "Do not reset the "core" variable in library (shared or not) mode."
Revert "Do not reset the "core" variable in library (shared or not) mode."

This reverts commit 4959111ecd81c7a18a3f13d6712c127bc64f873a.

The change breaks uob/remote tests.

aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport