Fix errcheck, fix golint, make better build script.