Cleanup reference to libraries