simplify __stdio_exit static linking logic