use major version for tag name

And add check for debugging features when building production
binaries.