bsdsocket: minor fixes (mostly format specifiers)