Some fixes for a 64bit FreeBSD build.