alter order of header inclusion for FreeBSD 4.8 compatibility