[PATCH 5/5] Fix header detection when cross compiling