retro-core-interfaces: Treat compile time warnings

Cast RetroCore* in RetroEnvironment* to treat compile time warnings.
retro-core-extern: Treat compile time warnings