Fix build using stale dynamic library