tools: use a "compat-init.sh" for all compatibility variables

Signed-off-by: Timothy Gu <timothygu99@gmail.com>