[d] Apply const on pointers where necessary; binary resources can be immutable now.