update dynamic linker cache when building shared libraries

so that libpython is registered/deregistered on install/erase