Fix undefined references when setting payloads.