Constraint and Variable Ordering Heuristics for Compiling