Unfortunately 9ada8bac failed to compile on FreeBSD due to the header not existing. So we need to check the existance and properly guard with ifdef.