Fix build break on win32 due to missing getopt

Change-Id: Ic54c1950398a822117b537db2f6f57f388e689b6
Reviewed-on: http://review.couchbase.org/39731
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Merge remote-tracking branch 'membase/3.0'

* membase/3.0:
  Fix build break on win32 due to missing getopt

Change-Id: I900866bfff5edec630cebb12f3d5bb5c75217fac