fix all -fpermissive errors in headers