Fix some issues compiling on ARM/Android with ppsspp

Still static_casting, but with a virtual rather than rtti.

-[Unknown]