changed reinterpret_cast of ToxCorePp instance in all callbacks to static_cast