Change the rtp event callback prototype. This fixes issues in arm64 where the call conventions for variadic functions are messing up the stack and leads to a crash.
Use void* type for user data and fix compilation warnings.