FBSD: Handle malloc/free changes in FBSD 12