Turn on warnings for legacy cfg syntax and convert the stdlib

Closes #17490