api: ifdef out fmtmsg.c and ndbm.c, fix stupid gcc messages