Sync lib to latest master.