changes to run weenet under Mac OS X
Merge branch 'macosx'
set default value for WEENET_MAX_OPEN_FILES to 1024
using 'rm -f'(exit with return value 0, when file not exist) to suppress warning in 'make clean'