Fix compile errors in qdevice on FreeBSD
Some header files need to be specified on FreeBSD, otherwise there
are compile errors. These files does not affect Linux compilation.
(backported from master 3252307de35480ced714eab1ff02e92c0b36ca04)
Signed-off-by: Bin Liu <bliu@suse.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>