added cross compiler variables for more convenient cross compilation
automatic cross compile detection