Disable non-standard library builtins in non-gnu language modes.

Fixes PR16138.