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>