Linux compat: strlcpy, dev_t -> int

- Include compat.h for strlcpy(3).
- I was misusing a `dev_t` as an `int`; use it correctly now.