Mednafen to beetle

Ready to get integrated into mainline. Sucessfully built, not tested yet