FS-5956: fix __sputc included twice due to stdio.h inlining issue