Cross-compile ccnet for windows in ubuntu14.04

Hi,guys.
I use mingw to cross-compile ccnet for windows in ubuntu14.04.3.
when I configure in ccnet,I got:

checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for WIN32... no
checking for Mac... no
checking for Linux... compile in linux
checking for uuid_generate in -luuid... no
configure: error: *** Unable to find uuid library

but I have libuuid.a in /usr/i686-w64-mingw32/lib/libuuid.a and /usr/x86_64-w64-mingw32/lib/libuuid.a

I try to rebuild libuuid from source.But I got error:

root@server1404:~/src/libuuid-1.0.3# make
make  all-am
make[1]: Entering directory `/root/src/libuuid-1.0.3'
/bin/bash ./libtool  --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I.   -I/usr/i686-w64-mingw32/include -I/usr/i686-w64-mingw32/sys-root/mingw/include -I/root/include -I. -g -O2 -MT libuuid_la-randutils.lo -MD -MP -MF .deps/libuuid_la-randutils.Tpo -c -o libuuid_la-randutils.lo `test -f 'randutils.c' || echo './'`randutils.c
libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/usr/i686-w64-mingw32/include -I/usr/i686-w64-mingw32/sys-root/mingw/include -I/root/include -I. -g -O2 -MT libuuid_la-randutils.lo -MD -MP -MF .deps/libuuid_la-randutils.Tpo -c randutils.c  -DDLL_EXPORT -DPIC -o .libs/libuuid_la-randutils.o
randutils.c:16:25: fatal error: sys/syscall.h: No such file or directory
 #include <sys/syscall.h>

version of ccnet is 3.0-stable