Modify binary file headers