4d6bb52603
Replace custom lists with TAILQ lists. Clean up plently of signed vs unsigned warnings and set WARNS=4. Adapted from FreeBSD.