build: replicate some makefile changes from consul/serf and bump the go module version to 1.12 (#206)