Library upgrades

Replacing all the deprecated APIs and constructors here.