changed to only fire certain debug code IF a certain environment variable is set, so we don't get tons of debugging output while compiling (apparently the APInt class is used by llvm to compile itself somehow)