I haven't tried building the Java stuff myself, but
while you're waiting for a more authoritative answer,
the problem with "size_t" reminds me of when
<sys/types.h> is not declared early enough or in the
right order.
If you do "man socket", synopis shows you
#include <sys/types.h>
#include <sys/socket.h>
Or if you try "man inet_aton", synopis says
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
These header files generally should be included in the
order shown or the build process may fail.
So while you're waiting for a better answer, you might
sniff around the source code and try moving
sys/types.h earlier in the include process.
(You also might want to make sure you have the current
CVS version. It seems like the authors have cleaned up
a lot of build issues on the various Posix systems
with the current CVS.)