How to rebuild extension libraries