I have fixed some mmap section bugs:
- mmap returns -1 i.e. MMAP_FAILED on failure not NULL,
- mmap's offset need to aligned to pagesize, read by sysconf()
It is tested on both Solaris/sparc and Linux/i386 machines,
it was not tested on FreeBSD and Windows (does it have mmap?).
- ed2k_hash crashes when file has size equal to 9500*1024
I have also added defined(sun)&&defined(__svr4__) to ifdefs directives in order to compile unix code in.