fixes errors compiling netfs and netfs_server with gcc-4.7.3

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>