libstd: Modernize some constructors

As part of #3853