resolve libxml header check for cross compiling too in.3.5.x branch