altos: Move common build definitions to src/Makefile.defs