moved getopt stuff to src/common set HAVE_GETOPT in winconfig.h
moved getopt stuff to src/common
set HAVE_GETOPT in winconfig.h

test correctly for getopt (ie. if !gnu clibrary use the included getopt stuff)
Use the new libmutils (if you have a beter name for this library which will
be used by all 'tools (clients and server)' feel free to make the changes)

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb