fix header copying build issue