main: move some const declarations to proc_linux
build: add a simple precommit hook that aborts if we need to fmt