wip: do not use MSG_NOSIGNAL when it's not defined
Fix ambiguous references to `map`
Default `PRIO_MAX` to 20 if not defined