Makefile: add test
Makefile: main: add -Wno-format-nonliteral
main: replace non-standard format "%zu" with a new function main_write_size_t