posix: build a libg.{a,so} with debug symbols for addr2line
build: add a code fix to newlib patch - broken getopt().