MB-12601: Switch to query DP4. Add support for -gcflags and "go tool yacc"

Change-Id: I916d8c61209304c0fdd9b8da3503d97513c40df6
Reviewed-on: http://review.couchbase.org/43105
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>