build: make compiler use the env var if present