More library DSTification

r? @aturon 
cc #16918