[FreeBSD] scandir() callback is non-const on FreeBSD platform.

This commit fixes following strict compile build breakage :
src/RPCAL/gssd/krb5_util.c: In function 'gssd_find_existing_krb5_ccache':
src/RPCAL/gssd/krb5_util.c:194: warning: passing argument 3 of 'scandir' from incompatible pointer type

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
[FreeBSD] re-organize the code to properly expose memstream APIs via header
files.

This commit fixes the strict compile build breakage on freebsd7.2 platform :
dbus_server.c: In function 'dbus_reply_introspection':
dbus_server.c:212: warning: implicit declaration of function 'open_memstream'
dbus_server.c:212: warning: assignment makes pointer from integer without a cast

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Yet another strict compile fix for 'value computed is not used' warnings.

This commit fixes following strict compile build breakage :
export_mgr.c: In function 'atomic_store_voidptr':
export_mgr.c:147: warning: value computed is not used

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
[FreeBSD] Fix miscellaneous strict compile errors in freebsd/subr.c

This commit fixes following strict compile errors :
freebsd/subr.c: In function 'vfs_readents':
freebsd/subr.c:47: warning: implicit declaration of function 'getdirentries'
freebsd/subr.c: In function 'vfs_utimesat':
freebsd/subr.c:100: warning: implicit declaration of function 'futimesat'
freebsd/subr.c: In function 'vfs_utimes':
freebsd/subr.c:117: warning: implicit declaration of function 'futimes'
freebsd/subr.c: In function 'setuser':
freebsd/subr.c:125: warning: implicit declaration of function 'syscall'

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
[FreeBSD] Fix strict compile build breakage in fsal_handle_syscalls.h

This commit fixes following strict compile warnings/errors:
fsal_handle_syscalls.h: In function 'vfs_link_by_handle':
fsal_handle_syscalls.h:163: warning: implicit declaration of function 'posix2fsal_error'

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
[FreeBSD] Fixes for misc strict compile build breakages on freebsd7.2

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>