libpd: Add void* argument to the midi hooks, plus new function libpd_set_hook_data