go: add option for building without cgo

Closes #20960.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
go: use buildpath
terminal-notifier: style nits