Fix missing includes in libbsd

This makes it compile with -Werror.