[build] automate building the linux static binary