make const and volatile-qualified callbacks actually work.