fbsd build fixes