The only reason why it didn't build with WARNS=6, is because of some simple to fix string formatting bugs. MFC after: 3 months
Also add some missing $FreeBSD$ to keep svn happy.