Default `PRIO_MAX` to 20 if not defined
Require `fcntl` headers on Unix
Fix ambiguous references to `map`

Solaris also defines `struct map` in `net/if.h`.