Fix release building.
Disable unused library.