Fix some compilation issues on FreeBSD?