Fixing header according to library header formats