make pinreceiver class compilable by wrapping interrupt handlers