check compiler env vars before using them